package exsun.jt808.data.jt809_data;

import java.util.Date;

public class ReceiveEntityBase {
	public ReceiveEntityBase(){
		time = new Date();
	}
	/**
	 * 16byte 消息头
	 */
	protected MsgHeader msgHeader;

	// 消息体字节数组
	protected byte[] msgBodyBytes;

	protected String msgTopic;

	protected int msgId;

	/**
	 * 消息是否有效
	 */

	protected boolean isValid = false;


	protected Date time;

	public MsgHeader getMsgHeader() {
		return msgHeader;
	}

	public void setMsgHeader(MsgHeader msgHeader) {
		this.msgHeader = msgHeader;
	}

	public byte[] getMsgBodyBytes() {
		return msgBodyBytes;
	}

	public void setMsgBodyBytes(byte[] msgBodyBytes) {
		this.msgBodyBytes = msgBodyBytes;
	}

//	public Channel getChannel() {
//		return channel;
//	}
//
//	public void setChannel(Channel channel) {
//		this.channel = channel;
//	}

	public boolean isValid() {
		return isValid;
	}

	public void setValid(boolean isValid) {
		this.isValid = isValid;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getMsgTopic() {
		return msgTopic;
	}

	public void setMsgTopic(String msgTopic) {
		this.msgTopic = msgTopic;
	}

	public int getMsgId() {
		return msgId;
	}

	public void setMsgId(int msgId) {
		this.msgId = msgId;
	}
}
